class MineState {
  String? avatar;
  String? email;
  String? nickName;
  String? phone;

  MineState({
    this.avatar = "",
    this.email = "",
    this.nickName = " 用户名",
    this.phone = "****",
  });

  factory MineState.fromMap(Map<String, dynamic> json) => MineState(
        avatar: json['avatar'] ?? "",
        email: json['email'] ?? "",
        nickName: json['nickName'] ?? "",
        phone: json['phone'] ?? "",
      );

  Map<String, dynamic> toMap() => {
        "avatar": avatar,
        "email": email,
        "nickName": nickName,
        "phone": phone,
      };
}
